package com.report.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author summer
 * @since 2024/06/30 21:03:12
 */
@Getter
@Setter
@TableName("member_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("member_id")
    private Integer memberId;

    @TableField("order_num")
    private String orderNum;

    @TableField("order_price")
    private BigDecimal orderPrice;

    @TableField("member_rule")
    private Integer memberRule;

    /**
     * 1微信2支付宝
     */
    @TableField("pay_method")
    private Integer payMethod;

    /**
     * 1pc 2小程序
     */
    @TableField("pay_plat")
    private Integer payPlat;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 1 待支付 2 已支付
     */
    @TableField("order_status")
    private Integer orderStatus;


    @TableField(exist = false)
    private String productName;
}
